package com.haiyou.common.data.annotation;

import org.apache.commons.lang3.Validate;
import org.springframework.util.StringUtils;



public final class KeyPrefixChecker {
	public static void checkFlag(String keyPrefix) {
		Validate.isTrue(!StringUtils.isEmpty(keyPrefix) && keyPrefix.length() <= 6 && keyPrefix.length() >= 2);
	}
}
